const router = require('express').Router();
const upload = require('../utils/upload');
// get路由渲染上传图片的页面
router.get('/upload', (req,res)=>{
  res.render('upload')
})
// post路由 做图片上传
router.post('/upload',upload.single('file'), (req,res)=>{
  res.send('上传成功')
})
module.exports = router;